/* 2014/10/11 */
package com.cosmos.quartz.launch;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias("interval")
public class TriggerIntervalConfig {
	
	@XStreamAlias("forever")
	@XStreamAsAttribute
	private Boolean repeatForever;
	
	@XStreamAlias("milliseconds")
	@XStreamAsAttribute
	private Integer milliseconds;

	@XStreamAlias("seconds")
	@XStreamAsAttribute
	private Integer seconds;
	
	@XStreamAlias("minutes")
	@XStreamAsAttribute
	private Integer minutes;
	
	@XStreamAlias("hours")
	@XStreamAsAttribute
	private Integer hours;
	
	public Boolean isRepeatForever() {
		return repeatForever;
	}

	public void setRepeatForever(Boolean repeatForever) {
		this.repeatForever = repeatForever;
	}
	
	public Integer getMilliseconds() {
		return milliseconds;
	}

	public void setMilliseconds(Integer intervalMilliseconds) {
		this.milliseconds = intervalMilliseconds;
	}

	public Integer getSeconds() {
		return seconds;
	}

	public void setSeconds(Integer intervalSeconds) {
		this.seconds = intervalSeconds;
	}

	public Integer getMinutes() {
		return minutes;
	}

	public void setMinutes(Integer intervalMinutes) {
		this.minutes = intervalMinutes;
	}

	public Integer getHours() {
		return hours;
	}

	public void setHours(Integer intervalHours) {
		this.hours = intervalHours;
	}
}
